package com.itheima.sh.clients.fallback;

import com.itheima.sh.clients.UserFeignApi;
import com.itheima.sh.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignApiFallBack implements UserFeignApi {

    @Override
    public User queryByIdi(String username) {
        User user = new User();
        user.setUsername(username);
        user.setName("fenigApiFallBack....");
        return user;
    }
}
